import request from '@/utils/request'

// 查询房源管理列表
export function listRoomInfo(query) {
  return request({
    url: '/weishu-house/roomInfo/list',
    method: 'get',
    params: query
  })
}
//推荐

export function listPrivateOptions(data){
  return request({
    url: '/weishu-house/roomState/ptList',
    method: 'get',
  })
}
// 查询房源管理详细
export function getRoomInfo(id) {
  return request({
    url: '/weishu-house/roomInfo/' + id,
    method: 'get'
  })
}

// 新增房源管理
export function addRoomInfo(data) {
  return request({
    url: '/weishu-house/roomInfo',
    method: 'post',
    data: data
  })
}

// 修改房源管理
export function updateRoomInfo(data) {
  return request({
    url: '/weishu-house/roomInfo',
    method: 'put',
    data: data
  })
}

// 删除房源管理
export function delRoomInfo(id) {
  return request({
    url: '/weishu-house/roomInfo/' + id,
    method: 'delete'
  })
}
